package com.litchi.activity;

import com.lib.uil.ToastUtils;
import com.litchi.R;
import com.tencent.a.b.r;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;

public class FindPwdActivity extends Activity implements OnClickListener {

	private EditText mEditText;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_findpwd);
		findViewById(R.id.img_back).setOnClickListener(this);
		findViewById(R.id.send).setOnClickListener(this);
		mEditText = (EditText) findViewById(R.id.edit_uid);
	}

	@SuppressLint("NewApi")
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.img_back:
			finish();
			break;
		case R.id.send:
			if (!mEditText.getText().toString().trim().isEmpty()) {

				ToastUtils.showToast(this, "短信已发送");
				finish();
			} else {
				ToastUtils.showToast(this, "手机号不能为空！");

			}

		default:
			break;
		}
	}

}
